// 基于template/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IGridViewModel } from "@/core/interface/view/model";

function getModel(): IGridViewModel {
    return {
        caption: "表格部件逻辑（不加载数据）",
        title: "表格部件逻辑（不加载数据）",
        capPSLanguageRes: "DE.LNAME.IBIZBOOK",
        titlePSLanguageRes: "",
        showDataInfoBar: false,
        codeName: 'IBIZBOOKUsr0309184543GridView',
        uiEngineModel: [
                    {
                        name: 'newdata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    },
                    {
                        name: 'opendata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    }
            ],
        ctrls: [
            {
                name: 'toolbar',
                codeName: 'Usr0309184543GridViewtoolbar',
                controlType: 'TOOLBAR',
            },
            {
                name: 'grid',
                codeName: 'Usr0309034926',
                controlType: 'GRID',
            },
            {
                name: 'searchform',
                codeName: 'Usr0309793703',
                controlType: 'SEARCHFORM',
            }
        ],
        ctrlParams: {
            IBIZBOOKtoolbar: {},
            IBIZBOOKgrid: {},
            IBIZBOOKsearchform: {},
        },
        cssName: "",
        name: "IBIZBOOKUsr0309184543GridView",
        viewType: "DEGRIDVIEW",
        viewStyle: "DEFAULT",
        showCaption: true,
        isLoadDefault: true,
        entityCodeName: "IBIZBOOK",
        keyPSAppDEField: "IBIZBOOKId",
        majorPSAppDEField: "IBIZBOOKName",
        enableQuickSearch: true,
        expandSearchForm:false,
        newData: {
            deCodeName: 'IBIZBOOK',
            newDataViewName: 'IBIZBOOKEditView',
        },
        openData: {
            redirectView: true,
            redirectParam: {
                redirectAction: '',
            },
            deCodeName: 'IBIZBOOK',
            openDataViewName: 'IBIZBOOKRedirectView',
        },
        toolbarItems: [
        ],
        toolbarLogics: [
            ]     ,
        xDataCtrlName: "grid",
        quickSearchPlaceholder: ['图书名称',].join(","),
        useDefaultLayout: true,
        enableRowEdit: false,
        rowActiveMode: 2,
        rowEditDefault: false,
    }
}

export const model = getModel();